#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();


private slots:
    void on_pbt_setword_clicked();

    void on_pbt_setsz_clicked();

    void on_pbt_bold_clicked();

    void on_pbt_italic_clicked();

    void on_pbt_underline_clicked();

    void on_pbt_strikeOut_clicked();

private:
    void setFont(); //设置字体
private:
    Ui::Widget *ui;
    QFont _font;
};
#endif // WIDGET_H
